import request from '@/utils/request'

/*
get /admin/acl/index/info

POST /admin/acl/index/login
{username,password}

POST /admin/acl/index/logout
*/
export function login({ username, password }) {
  return request({
    url: '/admin/acl/index/login',
    method: 'post',
    data: { username, password }
  })
}

export function getInfo() {
  return request('/admin/acl/index/info')
}

export function logout() {
  return request({
    url: '/admin/acl/index/logout',
    method: 'post'
  })
}
